package io.renren.modules.sq.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 系统表
 *
 * @author txw_cyl
 * @email sunlightcs@gmail.com
 * @date 2022-05-14 19:29:39
 */
@Data
@Accessors(chain = true)
@TableName("sq_system")
public class SqSystemEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 系统ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "系统id", dataType = "Long")
    private Long id;
    /**
     * 系统名称
     */
    @ApiModelProperty(value = "系统名称", dataType = "String")
    private String systemName;
    /**
     * 允许生成授权码0：禁止1：允许
     */
    @ApiModelProperty(value = "允许生成授权码0：禁止1：允许", dataType = "Integer")
    private Integer allow;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", dataType = "Date")
    private Date createTime;
    /**
     * 是否具有权限
     */
    @ApiModelProperty(value = "是否具有权限0：具有1：不具有", dataType = "Integer")
    @TableField(exist = false)
    private Integer owned = 1;

    @ApiModelProperty(value = "系统版本List", dataType = "List<SqSystemEditionEntity>")
    @TableField(exist = false)
    private List<SqSystemEditionEntity> editions;
}
